package com.xiangdao.model;

import java.text.SimpleDateFormat;
import java.util.Date;


public class PostSecond {

    private Integer id;

    private String content;  //评论


    private Date time;  //评论时间

    private PostMain postMain;  //评论所属的主贴

    private User user; //评论的用户id

    private Integer postMain_id;

    private Integer user_id;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public PostMain getPostMain() {
        return postMain;
    }

    public void setPostMain(PostMain postMain) {
        this.postMain = postMain;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public PostSecond() {
    }

    public Integer getPostMain_id() {
        return postMain_id;
    }

    public void setPostMain_id(Integer postMain_id) {
        this.postMain_id = postMain_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String displayParsedDate() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        return formatter.format(this.time);
    }

}

